package com.gx.recruitment.service.impl;

import com.gx.recruitment.entity.Comp_job;
import com.gx.recruitment.entity.Comp_jobExample;
import com.gx.recruitment.mapper.Comp_jobMapper;
import com.gx.recruitment.service.CompJobService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CompJobServiceImpl implements CompJobService {
    @Resource
    private Comp_jobMapper comp_jobMapper;

    @Override
    public int insertJob(Comp_job record) {
        comp_jobMapper.insert(record);
        return 0;
    }

    @Override
    public List<Comp_job> selectJob(Comp_jobExample example) {
        return comp_jobMapper.selectByExample(example);
    }

    @Override
    public int deleteByJobId(Integer jobId) {
        comp_jobMapper.deleteByPrimaryKey(jobId);
        return 0;
    }

    @Override
    public List<Comp_job> selectJobByJobOrComp(Comp_jobExample example) {
        return comp_jobMapper.selectByExample(example);
    }

    @Override
    public List<Comp_job> selectJobByJobId(Comp_jobExample example) {
        return comp_jobMapper.selectByExample(example);
    }

    @Override
    public List<Comp_job> selectJobByCompId(Comp_jobExample example) {
        return comp_jobMapper.selectByExample(example);
    }

    @Override
    public List<Comp_job> selectByExample(Comp_jobExample example) {
        return comp_jobMapper.selectByExample(example);
    }
}
